package com.ycsj.goldmedalnewconcept.constant;


import java.util.HashMap;
import java.util.Map;

import android.app.Application;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Handler;

/**
 * Created by Administrator on 2016/1/17.
 */
public class MyApplication extends Application {

    public static Context context;

    public static Handler handler;

    public static Thread mainThread;

    public static int mainThreadId;
    public static Map<String, Bitmap> showpicmap;
    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        handler = new Handler();
        mainThread = Thread.currentThread();
        mainThreadId = android.os.Process.myTid();
        //注册全局异常捕获类
//        CrashHandler.getInstance().init(this);
        showpicmap=new HashMap<String, Bitmap>();
    }
    
    public static Map<String, Bitmap> getShowPicMap() {
		return showpicmap;
	}
    
}
